import request from '@/utils/request'

// 查询个性化业务组件分组列表
export function listPersonalBusinessComponentGroup(query) {
  return request({
    url: '/business/personalBusinessComponentGroup/list',
    method: 'get',
    params: query
  })
}

// 查询个性化业务组件分组详细
export function getPersonalBusinessComponentGroup(id) {
  return request({
    url: '/business/personalBusinessComponentGroup/' + id,
    method: 'get'
  })
}

// 新增个性化业务组件分组
export function addPersonalBusinessComponentGroup(data) {
  return request({
    url: '/business/personalBusinessComponentGroup',
    method: 'post',
    data: data
  })
}

// 修改个性化业务组件分组
export function updatePersonalBusinessComponentGroup(data) {
  return request({
    url: '/business/personalBusinessComponentGroup',
    method: 'put',
    data: data
  })
}

// 删除个性化业务组件分组
export function delPersonalBusinessComponentGroup(id) {
  return request({
    url: '/business/personalBusinessComponentGroup/' + id,
    method: 'delete'
  })
}
